package com.gzcstec.user.repository;

import com.gzcstec.user.dataobject.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

@Component
public interface UserInfoRepository extends JpaRepository<UserInfo , String> {

    /**
     * 根据微信openid获取用户信息
     * @param openid
     * @return
     */
    UserInfo findByOpenid(String openid);
}
